﻿using Autofac;
using JiaBao.Core.Configuration;

namespace JiaBao.Core.Infrastructure.DependencyManagement
{
    /// <summary>
    /// 依赖注入接口
    /// </summary>
    public interface IDependencyRegistrar
    {
        /// <summary>
        /// 注册依赖关系
        /// </summary>
        /// <param name="builder"></param>
        /// <param name="typeFinder"></param>
        /// <param name="config"></param>
        void Register(ContainerBuilder builder , ITypeFinder typeFinder ,JiaBaoConfig config );

        int Order { get; }
    }
}
